歌词创作与音频合并
API Concat 音频合并接口
这个端点用于音频合并,多段音频合并为整段歌曲。 例如 A 请求生成了切片 id1, id2。紧接着对 id1 进行了扩展操作,得到了 id3, id4。 为了得到一首完整歌曲,可以提交 id3 或者 id4 从而得到一首合并后的歌曲。此端点不计费。
路径: /gateway/generate/concat
方法: POST
类型:application/json
参数:
| 参数名 | 类型 | 描述 | 备注 |
|---|---|---|---|
| clip_id | String | song_id | 最后一个部分的 song_id |
返回结果: 参考 API1
随机生成歌词
说明: 提供一个 prompt 参数,为你生成一个相关的歌词。
路径: /gateway/generate/lyrics
方法:POST
类型:application/json
参数:
| 参数名 | 类型 | 描述 | 备注 |
|---|---|---|---|
| prompt | String |
响应结果:
{"id":"a1563614-93fe-4ded-908d-2f948ae97036"}
查询歌 词生成结果
说明:根据上面的 API 返回的歌词 ID,来查询歌词的生成结果。
路径: /gateway/generate/lyrics?ids=
方法:GET
类型:application/json
URL 参数:
| 参数名 | 类型 | 描述 | 备注 |
|---|---|---|---|
| ids | String |
响应结果:
{"text":"[Verse]\nWake up to the sun so bright\nFeel the warmth it's pure delight\nShake off worries it's alright\nDance in morning's dazzling light\n\n[Verse 2]\nStep outside the world’s a glow\nSmiling faces everywhere you go\nChase the clouds away you know\nLet the good vibes start to flow\n\n[Chorus]\nOh oh oh the day's so fine\nLaugh and sing with joy that shines\nOh oh oh it’s all divine\nHappiness in every line\n\n[Verse 3]\nFriends are calling come along\nJoin the chorus sing the song\nIn this moment we'll stay strong\nDays like this they can’t be wrong\n\n[Bridge]\nLife is sweet like candy rain\nForget the sorrow let go of pain\nIn our hearts we'll break the chain\nTogether we shine in every lane\n\n[Chorus]\nOh oh oh the day's so fine\nLaugh and sing with joy that shines\nOh oh oh it’s all divine\nHappiness in every line","title":"Smile Through the Sunshine","status":"complete"}